package com.lyz.dz.des.config;

import cn.dev33.satoken.stp.StpInterface;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component

public class Rule implements StpInterface {

    @Override
    public List<String> getPermissionList(Object o, String s) {
        return null;
    }

    @Override
    public List<String> getRoleList(Object o, String s) {
        ArrayList<String> strings = new ArrayList<>();
        String o1 = (String) o;
//        List<role> role = userService.getRole(o1);
//        for (role r :
//                role) {
//            strings.add(r.getRolePerms());
//        }
        return strings;
    }
}
